package com.edu.exam.enums.examination.control;

import com.edu.exam.enums.core.BaseEnum;

/**
 * 异常类型枚举
 */
public enum AnomalyType implements BaseEnum {
    NETWORK_ANOMALY("NETWORK_ANOMALY", "网络异常"),
    SYSTEM_ANOMALY("SYSTEM_ANOMALY", "系统异常"),
    BEHAVIOR_ANOMALY("BEHAVIOR_ANOMALY", "行为异常"),
    PERFORMANCE_ANOMALY("PERFORMANCE_ANOMALY", "性能异常"),
    DATA_ANOMALY("DATA_ANOMALY", "数据异常"),
    SECURITY_ANOMALY("SECURITY_ANOMALY", "安全异常"),
    ACCESS_ANOMALY("ACCESS_ANOMALY", "访问异常"),
    PROCESSING_ANOMALY("PROCESSING_ANOMALY", "处理异常"),
    TIMING_ANOMALY("TIMING_ANOMALY", "时间异常"),
    RESOURCE_ANOMALY("RESOURCE_ANOMALY", "资源异常"),
    CONFIGURATION_ANOMALY("CONFIGURATION_ANOMALY", "配置异常"),
    VERSION_ANOMALY("VERSION_ANOMALY", "版本异常"),
    INTEGRATION_ANOMALY("INTEGRATION_ANOMALY", "集成异常"),
    COMMUNICATION_ANOMALY("COMMUNICATION_ANOMALY", "通信异常"),
    ENVIRONMENT_ANOMALY("ENVIRONMENT_ANOMALY", "环境异常");

    private final String code;
    private final String description;

    AnomalyType(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
